package demo2;

import demo1.Test;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: XMQ
 * Date: 2022-05-14
 * Time: 9:13
 */
//protected修饰符的简单测试

public class Demo extends demo1.Test {

    public void func(){
        Test test = new Test();
        System.out.println(super.a);
    }
    public static void main(String[] args) {
        Test test = new Test();
        test.func();
    }
}
